package Arrayexer;

/**
 * 属性： 姓名name年龄age性别sex身高height
 * 
 * @author AcerMr
 *
 */
public class Students
{
	private String name;
	private int age;
	private boolean sex;
	private double height;

	public Students()
	{

	}

	public Students(String name,int age)
	{
		this.name = name;
		this.age = age;
	}

	public Students(String name, int age, boolean sex, double height)
	{
		this(name,age);
		this.sex = sex;
		this.height = height;
	}

	public String toString()
	{
		String reault ="姓名："+name+";年龄："+age+";性别："+sex+";身高："+height+";"; 
		return reault;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public int getAge()
	{
		return age;
	}

	public void setAge(int age)
	{
		this.age = age;
	}

	public boolean isSex()
	{
		return sex;
	}

	public void setSex(boolean sex)
	{
		this.sex = sex;
	}

	public double getHeight()
	{
		return height;
	}

	public void setHeight(double height)
	{
		this.height = height;
	}
}
